//
//  RPHepatitisBean.m
//  yilutongxing
//
//  Created by T&J on 2017/6/14.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import "RPHepatitisBean.h"

@implementation RPHepatitisModel

+(instancetype)initFromSuperBean1:(RPHepatitisBean *)data{
    RPHepatitisModel *ins = [RPHepatitisModel new];
    ins.hepatitis1 = data.hepatitis1;
    ins.hepatitis2 = data.hepatitis2;
    ins.hepatitis3 = data.hepatitis3;
    ins.hepatitis4 = data.hepatitis4;
    ins.hepatitis5 = data.hepatitis5;
    ins.hepatitis6 = data.hepatitis6;
    ins.hepatitis7 = data.hepatitis7;
    ins.hepatitis8 = data.hepatitis8;
    return ins;
}
+(instancetype)initFromSuperBean2:(RPHepatitisBean *)data{
    RPHepatitisModel *ins = [RPHepatitisModel new];
    ins.hepatitis1 = data.hepatitis8;
    ins.hepatitis2 = data.hepatitis9;
    ins.hepatitis3 = data.hepatitis10;
    ins.hepatitis4 = data.hepatitis11;
    ins.hepatitis5 = data.hepatitis12;
    ins.hepatitis6 = data.hepatitis13;
    ins.hepatitis7 = data.hepatitis14;
    return ins;
}
-(RPHepatitisBean*)pushData2Superbean1:(RPHepatitisBean *)data{
    data.hepatitis1 = self.hepatitis1;
    data.hepatitis2 = self.hepatitis2;
    data.hepatitis3 = self.hepatitis3;
    data.hepatitis4 = self.hepatitis4;
    data.hepatitis5 = self.hepatitis5;
    data.hepatitis6 = self.hepatitis6;
    data.hepatitis7 = self.hepatitis7;
    data.hepatitis8 = self.hepatitis8;
    return data;
}
-(RPHepatitisBean*)pushData2Superbean2:(RPHepatitisBean *)data{
    data.hepatitis8 = self.hepatitis1;
    data.hepatitis9 = self.hepatitis2;
    data.hepatitis10 = self.hepatitis3;
    data.hepatitis11 = self.hepatitis4;
    data.hepatitis12 = self.hepatitis5;
    data.hepatitis13 = self.hepatitis6;
    data.hepatitis14 = self.hepatitis7;
    return data;
}

@end


@implementation RPHepatitisBean
- (id)copyWithZone:(NSZone *)zone{
    RPHepatitisBean *hep = [[[self class]allocWithZone:zone]init];
    hep.hepatitis1 = self.hepatitis1;
    hep.hepatitis2 = self.hepatitis2;
    hep.hepatitis3 = self.hepatitis3;
    hep.hepatitis4 = self.hepatitis4;
    hep.hepatitis5 = self.hepatitis5;
    hep.hepatitis6 = self.hepatitis6;
    hep.hepatitis7 = self.hepatitis7;
    hep.hepatitis8 = self.hepatitis8;
    hep.hepatitis9 = self.hepatitis9;
    hep.hepatitis10 = self.hepatitis10;
    hep.hepatitis11 = self.hepatitis11;
    hep.hepatitis12 = self.hepatitis12;
    hep.hepatitis13 = self.hepatitis13;
    hep.hepatitis14 = self.hepatitis14;
    return hep;
}
@end
